<template>
	<view>
		<!--     头部      -->
		<view class="box-shang">
			<view style="margin-left: 150rpx;" @click="toWeiXiu">进行中</view>
			<view style="margin-right: 150rpx;border-bottom: 6rpx solid white;">已完成</view>
		</view>
		<!-- 维修方式 -->
		<view class="weiXiuFangShi">
			<view class="weiXiuFangShi-1">维修方式: </view>
			<view class="quanBu">
				<picker mode="selector" :range="array" :value="index" @change="bindPickerChange" class="xiaLaKuang">
					<view class="uni-input">{{array[index]}}</view>
				</picker>
			</view>

			<view class="yuYueRiQi">
				<view>预约日期</view>
				<image src="/static/日期@2x.png" mode=""></image>
			</view>
		</view>
		<!-- 维修单号 -->
		<view class="box" @click="toXiangQing_YiWanCheng">
			<!-- 维修单号 -->
			<view class="box-1">
				<view class="box-2">维修单号: </view>
				<view class="box-3">3335243</view>
			</view>
			<!-- 维修方式 -->
			<view class="box-1">
				<view class="box-2">维修方式: </view>
				<view class="box-3">到店维修</view>
			</view>
			<!-- 预约日期 -->
			<view class="box-1">
				<view class="box-2">预约日期: </view>
				<view class="box-3"> 2022/11/10 11:00</view>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				array: ['全部', '到店维修', '上门取车'],
				index: 0,

			}
		},
		methods: {
			bindPickerChange(e) {
				this.index = e.detail.value;
			},
			toWeiXiu(){
				uni.redirectTo({
					url:"/pages/my/index/weiXiu/weiXiu"
				})
			},
			toXiangQing_YiWanCheng(){
				uni.navigateTo({
					url:"/pages/my/index/weiXiu/weiXiu-yiWanCheng/weiXiu-xiangqing-yiwancheng/weiXiu-xiangqing-yiwancheng"
				})
			}
		}
	}
</script>

<style>
	.box-shang {
		background-color: #55aaff;
		height: 80rpx;
		display: flex;
		justify-content: space-around;
		color: white;
		font-size: 35rpx;
		line-height: 80rpx;
		padding: 20rpx;
	}

	.weiXiuFangShi {
		width: 90%;
		height: 140rpx;
		background-color: #fff;
		border-radius: 20rpx;
		margin: auto;
		padding: 1rpx;
		margin-top: 30rpx;
	}

	.weiXiuFangShi-1{
		float: left;
		margin: 50rpx 20rpx 0 20rpx;
	}
	.quanBu{
		float: left;
		background-color: #55aaff;
		color: #fff;
		width: 150rpx;
		height: 60rpx;
		border-radius: 10rpx;
		margin-top: 40rpx;
	}
	.xiaLaKuang{
		text-align: center;
		margin-top: 10rpx;
	}
	.yuYueRiQi{
		
	}
	.yuYueRiQi image{
		width: 30rpx;
		height: 30rpx;
		float: right;
		margin-top: 57rpx;
		margin-right: 10rpx;
	}
	.yuYueRiQi view{
		float: right;
		margin-top: 50rpx;
		margin-right: 30rpx;
	}
	.box{
		background-color: #fff;
		width: 90%;
		height: 270rpx;
		margin: auto;
		margin-top: 30rpx;
		border-radius: 30rpx;
		padding: 1rpx;
	}
	.box-1{
		display: flex;
		justify-content: flex-start;
		margin: 30rpx;
		padding: 1rpx;
	}
	.box-2{
		/* margin-left: 30rpx; */
	}
	.box-3{
		margin-left: 30rpx;
		color: lightsteelblue
	}
</style>
